<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="/static/styles/test.css">
    <title>Register</title>
</head>
<body>
<form action = "/doRegister" method="post">
    <div class="field">
        <label for="username">用户名：</label>
        <input type="text" id = "username" name="username" required placeholder="请输入用户名">
    </div>
    <div class="field">
        <label for="password">密 码：</label>
        <input type="password" id = "password" name="password" required placeholder="请输入密码">
    </div>
    <div class="field">
        <label for="sex">性 别：</label>
        <input type="radio" id="sex" name="sex" value="男" checked>
        <label for="m">男</label>
        <input type="radio" id="sex" name="sex" value="女" checked>
        <label for="f">女</label>
    </div>
    <div class="field">
        <label for="age">年 龄：</label>
        <input type="text" id = "username" name="age" required placeholder="请输入年龄">
    </div>
    <div class="field">
        <label for="hometown">籍 贯：</label>
        <select name="hometown">
            <#list hometownList as hometown>
                <option value="${hometown.value}">${hometown.text}</option>
            </#list>
        </select>
    </div>
    <div class="field">
        <label for="mail">邮 箱：</label>
        <input type="text" id = "mail" name="mail" required placeholder="请输入邮箱">
    </div>
    <div class="field">
        <label for="hobby">爱 好：</label>
        <select name="hobby">
            <#list hobbyList as hobby>
                <option value="${hobby.value}">${hobby.text}</option>
            </#list>
        </select>
    </div>

    <input type="submit" value="注册">
</form>
</body>
</html>